import React from 'react';
import Content from './content';
import Skeleton from './skeleton';

export default class CommitInfoMedia extends React.Component {
  render() {
    const { isLoading, ...others } = this.props;
    if (isLoading) {
      return <Skeleton {...others} delay={1000} />;
    }
    return <Content {...others} />;
  }
}
